package com.hxtec.polaris.mapper;

import com.hxtec.polaris.entity.ShopLogisticCompany;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author yonyong
 * @Description //快递厂家mapper
 * @Date 2019/12/30 11:52
 * @Param
 * @return
 **/
public interface ShopLogisticCompanyMapper {
    int delete(Integer id);

    int insert(ShopLogisticCompany shopLogisticCompany);

    int insertDynamic(ShopLogisticCompany shopLogisticCompany);

    int updateDynamic(ShopLogisticCompany shopLogisticCompany);

    int update(ShopLogisticCompany shopLogisticCompany);

    ShopLogisticCompany selectById(Integer id);

    /**
     * 获取所有物流公司信息
     * @return
     */
    List<ShopLogisticCompany> selectAll();

    /**
     * 根据快递公司名称获取公司code
     * @param company
     * @return
     */
    ShopLogisticCompany selectByName(@Param("name") String company);
}